﻿using PMS.Data.Entities.Messages;
using System.Collections.Generic;

namespace PMS.Services.Utils.Messages
{
    /// <summary>
    /// Email sender
    /// </summary>
    public partial interface IEmailSender
    {
        /// <summary>
        /// Sends an email 单邮件发送/触发
        /// </summary>
        /// <param name="emailAccount">Email account to use</param>
        /// <param name="subject">Subject</param>
        /// <param name="body">Body</param>
        /// <param name="fromAddress">use emailAccount.Email</param>
        /// <param name="fromName">use emailAccount.DisplayName</param>
        /// <param name="toAddress">To address</param>
        /// <param name="toName">To display name</param>
        /// <param name="replyToAddress">use emailAccount.ReplyTo</param>
        /// <param name="replyToName">use emailAccount.DisplayName</param>
        /// <param name="bcc">
        ///     BCC addresses list Blind Carbon Copy(暗抄送)
        ///     Key: Email Address
        ///     Value: Email DisplayName
        /// </param>
        /// <param name="cc">
        ///     CC addresses list Carbon Copy(抄送) 
        ///     Key: Email Address
        ///     Value: Email DisplayName
        /// </param>
        /// <param name="attachmentFilePath">Attachment file path</param>
        /// <param name="attachmentFileName">Attachment file name. If specified, then this file name will be sent to a recipient. Otherwise, "AttachmentFilePath" name will be used.</param>
        /// <param name="headers">Headers</param>
        void SendEmail(EmailAccount emailAccount, string subject, string body,
            string fromAddress, string fromName,
            string toAddress, string toName,
            string replyToAddress, string replyToName,
            IDictionary<string, string> bcc = null, IDictionary<string, string> cc = null,
            string attachmentFilePath = null, string attachmentFileName = null,
            IDictionary<string, string> headers = null);
    }
}
